<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<button id="go1">» Animate Block1</button>
		<button id="go2">» Animate Block2</button>
		<div id="block1">Block1</div><div id="block2">Block2</div>
	</body>
	
	<!--Step1:导入jquery-->
	<script type="text/javascript" src="../../js/jquery-1.4.1.js" ></script>
	<script>
		$("#go1").click(function(){
		  $("#block1").animate({
		  		height: 'toggle', 
		  		opacity: 'toggle'
		  	}, { duration: "slow" });
		});
		
		$("#block1").animate({
		   height: 'toggle', opacity: 'toggle'
		 }, { duration: "slow" });
		
		$("#go2").click(function(){
		  $("#block2").animate( { width: "90%"}, 1000 )
		     .animate( { fontSize: '10em' } , 1000 )
		     .animate( { borderWidth: 5 }, 1000);
		});
	</script>
</html>
